package com.itheima.pinda.DTO.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 角色的资源
 * </p>
 *
 * @author xsf
 * @since 2021-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PdAuthRoleAuthority extends Model<PdAuthRoleAuthority> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 权限id
#c_auth_resource
#c_auth_menu
     */
    private Long authorityId;

    /**
     * 权限类型
#AuthorizeType{MENU:菜单;RESOURCE:资源;}
     */
    private String authorityType;

    /**
     * 角色id
#c_auth_role
     */
    private Long roleId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    private Long createUser;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
